package com.kyomonn.talkischeap.PersonalCenter;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class PersonalCenterViewModel extends ViewModel {
    private final MutableLiveData<String> username = new MutableLiveData<>();
    private final MutableLiveData<String> email = new MutableLiveData<>();
    private final MutableLiveData<Boolean> isLogin = new MutableLiveData<>(false);

    public MutableLiveData<String> getUsername() {
        return username;
    }

    public void setUsername(String name) {
        this.username.setValue(name);
    }

    public MutableLiveData<String> getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email.setValue(email);
    }

    public MutableLiveData<Boolean> getIsLogin() {
        return isLogin;
    }

    public void setLogin(Boolean login) {
        this.isLogin.setValue(login);
    }
}